
import { playerStore } from '../../store/index'
Component({

  properties: {
    item:Object,
    value:{}
  },

  data: {

  },

  methods: {
    handleSongItemClick:function(){
      const id = this.properties.item.id
      wx.navigateTo({
        url: '/pages/music-player/index?id=' + id,
      })
      //对歌曲的数据请求和其他操作
      playerStore.dispatch("playMusicWithSongIdAction",{ id })

      //获取到播放列表/当前歌曲的索引
      
    }
  }

})
